package com.ruoyi.ctcx.service;

import java.util.List;
import com.ruoyi.ctcx.domain.TbInsuranceAttachment;

/**
 * 保险附件Service接口
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
public interface ITbInsuranceAttachmentService 
{
    /**
     * 查询保险附件
     * 
     * @param id 保险附件主键
     * @return 保险附件
     */
    public TbInsuranceAttachment selectTbInsuranceAttachmentById(String id);

    /**
     * 查询保险附件列表
     * 
     * @param tbInsuranceAttachment 保险附件
     * @return 保险附件集合
     */
    public List<TbInsuranceAttachment> selectTbInsuranceAttachmentList(TbInsuranceAttachment tbInsuranceAttachment);

    /**
     * 新增保险附件
     * 
     * @param tbInsuranceAttachment 保险附件
     * @return 结果
     */
    public int insertTbInsuranceAttachment(TbInsuranceAttachment tbInsuranceAttachment);

    /**
     * 修改保险附件
     * 
     * @param tbInsuranceAttachment 保险附件
     * @return 结果
     */
    public int updateTbInsuranceAttachment(TbInsuranceAttachment tbInsuranceAttachment);

    /**
     * 批量删除保险附件
     * 
     * @param ids 需要删除的保险附件主键集合
     * @return 结果
     */
    public int deleteTbInsuranceAttachmentByIds(String[] ids);

    /**
     * 删除保险附件信息
     * 
     * @param id 保险附件主键
     * @return 结果
     */
    public int deleteTbInsuranceAttachmentById(String id);

    /**
     * 根据保险信息获取附件信息
     * @param id
     * @return
     */
    List<TbInsuranceAttachment> selectTbInsuranceAttachmentByMainId(Long id);

    /**
     * 保存附件和关联关系
     * @param mainId
     * @param tbInsuranceAttachmentList
     */
    public void saveAttachment(String mainId , List<TbInsuranceAttachment> tbInsuranceAttachmentList ,String userName);
}
